package com.itheima.mapper;

import com.itheima.pojo.Clazz;
import com.itheima.pojo.ClazzQueryParam;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface ClazzMapper {

    void insert(Clazz clazz);

    //@Select("select * from clazz")
    List<Clazz> selectAll();

    Clazz selectById(Integer id);

    void deleteById(Integer id);


    void put(Clazz clazz);

    List<Clazz> page(ClazzQueryParam param);
}
